Part Number Hot Search : 
1800S PL0382 022284 U2860 BCR185W E003738 ZM4756 694310KB
Product Description
Full Text Search
 

To Download GS-C200 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  GS-C200 GS-C200s intelligent stepper motor controllers june 1994 1/31 description the GS-C200 and GS-C200s are powerful stepper motor control modules that interface every power sequencer/driver available on the market. a sophisticated hardware and an easy to learn programming language result in minimal develop- ment and debugging time of motion control sys- tems. the modules are supported by dedicated software that includes both an on-screen editor and a debugger that greatly improve the module ease of use. the instruction sets comprise respectively 25 (gs- c200) and 29 (GS-C200s) different commands features absolute and incremental positioning up to 999,999 step per move speed range to 10,000 steps/s ramp lenght to 999 steps single unregulated supply voltage index and velocity mode automatic and home positioning loops and delay execution conditional start and stop status feedback to the host rs232 communication port point to point and multipoint protocol closed loop operation counter preset (GS-C200s only) jump to (GS-C200s only) jump to on-condition (GS-C200s only) initialization during execution (GS-C200s only) auxiliary output voltages +5v, 12v which can be executed either under host control or in a stand alone environment. an on board ee- prom is used for program saving and retrieving. the availability of three user inputs and three programmable user outputs, each of which can be tested or set under program control, assures to the designer a high level of system power and flexibility. absolute maximum ratings symbol parameter value unit v s dc supply voltage 42 v t stg storage temperature range 40to+85 c t op operating temperature range 0to+50 c humidity (non condensing) 0to90 %
2/31 electrical characteristics (t a = 25c and v s = 24v unless otherwise specified) symbol parameter min typ max unit v s dc supply voltage 12 40 v i s quiescent supply current 80 ma v i logic input voltage (ttl compatible) low high 2 0.8 5 v v v o logic output voltage (ttl compatible) low high 2 0.8 5 v v t cpw clock pulse width 5 m s t rpw reset pulse width (internal) 500 m s communication port characteristics signal lines 3 (txd, rxd, gnd) baud rate range 110 to 9600 format 1 start bit 7 data bit 2 stop bit odd parity motion characteristics speed range 10 to 10000 steps speed resolution 10 steps ramp lenght 1 to 999 steps ramp resolution 1 step positioningrange(c200) (c200s) 0 to 9999999 8388608 to + 8388607 single movement range 1 to 999999 steps positioning resolution 1 step positioning repeatibility +/ 0 step program storage capability 119 bytes storage capacity minimum number of commands 30 maximum number of commands 45 GS-C200 / GS-C200s
figure 1. block diagram 3/31 connection diagram and mechanical data dimensions in mm. bottom view GS-C200 / GS-C200s
4/31 pin description pin function description 1 sel0 protocol/address lsb select input 2 sel1 protocol/address ssb select input 3 sel2 protocol/address msb select input 4 br0 baud rate lsb select input 5 br1 baud rate ssb select input 6 br2 baud rate msb select input 7 chs checksum enable input 8 gnd ground 9 rec program autorecall input 10 must be connected to pin 8 11 rxd rs232 received data input 12 txd rs232 transmitted data output 13 txpd transmitted data pull-down resistor 14 rdy status logic output 15 vsl unregulated 12v supply output (note 1) 16 +vsl unregulated +12v supply output (note 1) 17 v s supply voltage input 18 v s supply voltage input 19 gnd ground 20 5v 5v auxiliary output (note 2) 21 5v 5v auxiliary output (note 2) 22 mov motor moving logic output 23 ramp motor ramping logic output 24 enable stop enable logic input 25 not connected 26 dir direction selection logic output 27 reset power driver reset logic output 28 clock step clock logic output 29 not connected 30 home home position logic input 31 uo1 user 1 logic output 32 eot end of travel switch logic input 33 uo2 user 2 logic output 34 ui1 user 1 logic input 35 uo3 user 3 logic output 36 ui2 user 2 logic input 37 ui3 user 3 logic input 38 gnd ground notes: 1 maximum available current is 10ma 2 maximum available current is 100ma GS-C200 / GS-C200s
the various signals that characterize the gs-c, their function and the active level are described in detail in the following: pin function 1-2-3 the sel0 (pin1), sel1 (pin2) and sel2 (pin3) inputs are used to select the communication protocol and the module address. they have an internal pull-up and when unconnected they are at the 1 logic level. 4-5-6 the br0 (pin4), br1 (pin5) and br2 (pin6) inputs are used to select the baud rate of the communication port. they have an internal pull-up and when unconnected they are at the 1 logic level. 7 the chs checksum generation conditioning input enables the user to include or exclude the checksum character from the data exchange string. a ozeroo logic level applied to this input disables the control and the generation of the checksum character thus allowing the gs-c to be connected to a video terminal. 8 this pin is the common terminal for all logic signals and for the power supply return path. 9 the rec recall program enable input pin, when brought to ozeroo, enables the automatic recall of the program stored in the eeprom and its immediate execution. 10 this pin is for testing purpose only and it must be grounded for normal operation. 11 the rxd input of the serial communication port is used by the module to receive commands from the host computer. the input logic levels are compatible with the rs232 and v24 standards. 12 the txd output of the serial communication port is used by the module to send data to the host computer. the logic levels of this output are compatible with the rs232 and v24 standards. 13 the txpd transmitted data pull-down resistor pin must always be connected to the txd output (pin 12) when the point-to-point protocol is used. when the multipoint protocol is selected, this pin must be left open on all modules except the chain terminator unit, in order to avoid the txd output overload. 14 the rdy hardware status output (open collector) signal pin is used as the controller status flag. rdy assumes a ozeroo logic level when a command or a program is in execution 15 12v unregulated output. a maximum of 10ma can be sinked from this pin. 16 +12v unregulated output. a maximum of 10ma can be sinked from this pin. 17 - 18 module supply input. for correct operations a supply voltage ranging from 12 to 40 volt is required. 19 see pin 8. 20 - 21 5 volt regulated output, available either for the sequencer-driver logic section or for a custom interface logic supply. the maximum current that can be sinked from this pin is 100ma. 22 the mov motor moving output becomes the logic level ooneo when the gs-c is executing a movement. this output can be used to program the phase current level when the motion is running at a level higher than for the rest condition. 23 the ramp ramp in execution output is rised to the logic level ooneo when the gs-c is executing an acceleration or a deceleration ramp. this output can be used to program the phase current level when the motion is ramping at a level higher than for the rest or slewing condition. 24 the enable input pin allows the user to control the step clock logic output to avoid the motor being stepped if the previous step was not correctly executed. a ozeroo logic level applied to this pin stops the generation of the step pulses. this input can be used to stop the system when an emergency occurs, to execute the motion according to externally generated timing, or to implement a closed loop control system. 25, 29 not connected. 26 the dir direction selection output is used to inform the sequencer-driver on the direction of rotation. the logic level ooneo determines a clockwise rotation, but of course the rotation depends on the motor phases connection to the sequencer-driver. 27 the reset power driver reset output is brought to the ozeroo logic state for 400 m s when the unit is powered-on, or when the gs-c receives the oinitialize position countero command. this output is normally used to assure the correct start-up of the sequencer-driver or any other external custom logic. 5/31 GS-C200 / GS-C200s
6/31 pin function 28 the clock step clock output is used to inform the sequencer-driver to perform a step. the direction (clockwise or counterclockwise) is defined by the logic status of the dir output. in steady conditions, the clock is at the ooneo logic level, and the step is represented by a negative going pulse with a 1.7 m s duration. 30 the home home position input allows the system to find its reference point. this input can be driven by a mechanically activated contact indicating the ozeroo position. it is normally used together with the eot end-of-travel signal. 31 the uo1 user output 1 is intended for user purposes. the status of this output can be set and cleared under program control and it can be used for various functions. it is normally used for the control of external devices, the selection of the sequencer-driver operating mode, or the synchronization of complex movements. 32 the eot end-of-travel input allows, in combination with the home input, the correct mechanical initialization of the system. for this purpose it must be brought to the ozeroo logic level when the system reaches the run end position. 33 the u02 user output 2 is intended for user purposes. see pin 31 description. 34 the ui1 user input is intended for user purposes. the status of this input can be read by the host computer or tested during the program execution, and used to condition the start of a movement, the execution of a specific portion of a program (GS-C200s only), or any other similar operation. 35 the uo3 user output 3 is intended for user purposes. see pin 31 description. 36 the ui2 user input 2 input is intended for user purposes. see pin 34 description. 37 the ui3 user input 3 input is intended for user purposes. see pin 3 and pin 4 description. 38 see pin 8. figure 2. gs-c timing diagram GS-C200 / GS-C200s
7/31 s.i.m.p.l.e. interpreter command and functions ( s gs- t homson i nteractive s tepper m otor p rogramming l anguage and e xecutor) command byte length function ax 2 activate the specified (x) user output. cx 2 clear the specified (x) user output. dxxx 2 delay for the specfied number (xxx) of tenth of second. e start executing the program currently stored into ram memory. f feedback the gs-c status (i.e. ready or busy). f+/xxxxxxx 4 preset the position counter to the specified absolute value (c200s). g+/xxxxxxx 4 go to the specified target position (c200s). g(+/) 4 move the motor indefinitely in the specified direction. g(+/)x 4 move the motor in the specified direction until the specified (x) input is brought to zero. h(+/) find home position moving clockwise (+), or moving counterclockwise (). ix 2 initialize the position counter (x=1), the user outputs (x=2), or both (x=3). jx 2 jump to memory location (x). location (x) ranges between 0 and 118 (c200s). jcy, x 2 jump to memory location (x) if the binary value of the user inputs matches (y) value (c200s). k kill the program in execution. lx 2 loop for the specified (x) number of times. m transfer the ram memory content to eeprom. p enter the programming mode (c200). po enter the programming mode (c200s). px exit the programming mode (c200s). q list to the host the program currently in ram memory. rxxx 4 set the ramp length to the specified (xxx) value. sxxx 4 set the start-stop speed to the specified (xxx) value. txxx 4 set the slew rate speed to the specified (xxx) value. ux 2 execute the program until the specified (x) user input is brought to a low level. vx read back the current position (x=1) or the user i/o status (x=2). x transfer the program from eeprom to ram. wx 2 wait until the specified (x) user input is raised to a logic one level. z stop through a deceleration ramp. +/xxxxxx 4 move clockwise (+) or counter-clockwise () for the specified (xxxxxx) number of steps. GS-C200 / GS-C200s
8/31 GS-C200 and GS-C200s description the increasing popularity of microprocessors and their very low cost, have contributed to a fast growth of stepper motors usage in a large numbers of application previously covered by more complex, bulk and expensive dc motors servo loops. the GS-C200 and the GS-C200s modules have been conceived to help the industrial designer in design- ing the stepper motor applications based on micro- processor control. these modules are programmable intelligent step- per motor controllers that coordinate highly com- plex movements and sequential operations. this capability is performed through the integration of sophisticated hardware and an easy to learn and very functional and powerful programming lan- guage. thanks to this high level programming language, the power of the instruction set and the ability to condition and control the program execution through the user inputs and outputs, the GS-C200 and GS-C200s drastically reduce the design time and start-up manufacturing phase of very complex systems. the GS-C200s offers an advanced and powerful instruction set that includes also the con- ditional jump which allows for more efficient pro- gram-ming. the GS-C200, the GS-C200s and their companion modules, the gs-d200 and the gs- d200s, can be used to drive in chopped mode of bipolar stepper motor with a 2/2.5a maximum phase current rating. the two modules (gs-c and gs-d) are available also on a single eurocard board named respec- tively gs-dc200, gs-dc200s and gs-dc200ss according to the various modules combination (see the relevant data sheet). in the following the mod- ules will be generically named gs-c. the specific module part number will be used when the feature is unique to that module. a motion system architecture a complete motion system controlled by a host computer is normally configured as per fig. 3. figure 3. a motion system block diagram the gs-c logical and functional architecture is shown in fig. 1 and it includes the following basic blocks: interface to the host computer via an rs232 communication port. address and baud rate selection. interface to the sequencer-driver (in particular but not exclusively, to the gs-d200 or gs- d200s) via 5 output and 3 input lines command interpreter and executor. program storage area power supply. the above mentioned functions are performed by the gs-c without the addition of any external com- ponent, and the module flexibility is further en- hanced by the use of only one unregulated supply voltage that can be the same used to supply the sequencer-driver (from 12v up to 40v). commands are sent to the module by a host com- puter or by a simple video terminal during the programming/debugging phase through an rs232 serial port. they are interpreted and validated by the command interpreter and executed through the sequencer-driver interface. command execution can be conditioned and con- trolled by the status of the user in-out interface. a program storage area has been added to perma- nently store a program in an on-board eeprom; this is particulary beneficial to obtain a low cost stand-alone controller that does not need any con- nection to an external computer or to store pro- grams frequently used in complex motion sequencies thus reducing the host computer bur- den and speeding up the system processing. particular attention has been given to the simplicity of the instruction set to allow an easy design of the system to those designers that are not very familiar with microprocessor software and programming. in the following a detailed description of the various functional blocks is given. GS-C200 / GS-C200s
interface to the host computer and data protocol the interface to the host computer is through an rs232 or v24 serial communication port. baud rate programming the baud rate is programmed between 110 and 9600 bit/sec by using the br0, br1 and br2 inputs according to the following table: br0 (p4) br1 (p5) br2 (p6) baud rate 0 0 0 9600 1 0 0 4800 0 1 0 2400 1 1 0 1200 0 0 1 600 1 0 1 300 0 1 1 150 1 1 1 110 this setting is obtained by connecting the pins 4, 5, and 6 to ground (0 status) or by leaving them open (1 status). the communication port does not use any control line but just the transmit and receive signals. the host computer must handle the data excange in the proper way. module address programming the communication protocol can be either point to point or multipoint. in the first case a single com- munication line is required for each module, while in the latter more than one module (up to seven) can share the same communication line. the multipoint protocol as well as the peripheral device address are selected through sel0, sel1 and sel2 inputs. the point-to-point protocol is selected by connecting all the sel inputs to the 5v output pin (pin 20) or by leaving them open. the following table defines the protocol and the address setting: sel2 sel1 sel0 address protocol 0 0 0 7 multipoint 1 0 0 6 multipoint 0 1 0 5 multipoint 1 1 0 4 multipoint 0 0 1 3 multipoint 1 0 1 2 multipoint 0 1 1 1 multipoint 1 1 1 point-to-point 9/31 when the multipoint connection is chosen, the ad- dress of each module is obtained by connecting the various sel pin (1, 2, 3) to ground (0 status) or by leaving them open (1 status). the basic difference between the two protocols is represented by the sytem wiring complexity and the data throughput. the point-to-point offers the higher throughput data rate but it requires a con- necting cable for each unit, while the multipoint minimizes the connecting cables but at reduced throughput rate. when this latter protocol is chosen, the command must always be preceeded by the address of the unit. data exchange protocol the dialogue is always driven by the host com- puter which sends the string containing the com- mand or the request to be implemented. the gs-c module stores the instruction sent by the host and then it checks if the string has been correctly re- ceived by analyzing the parity bit. it then analyzes the consistency of the received instructions by veri- fying the presence and correctness of the argu- ment, and finally, it checks whether the request can be processed or not (for example, an attempt to move outside the system limits, etc.) reporting to the host the analisys result. if no error is detected, the gs-c replies to the host by a oyo message. in case of error, the message will be oerror xo request- ing the host to send the message again or to modify some parameters of the previous message to fix the error detected by the gs-c. the actual value of x (see fig. 4 and error code table) gives the host the information on the type of detected error. the pro- cedure implemented for the dialogue with the host is shown on the flowchart of fig. 4. figure 4. controller-host dialogue flowchart. GS-C200 / GS-C200s
the general format of a command string is the following: address command argument checksum car.return the address must be the first transmitted charac- ter and it is present only if the multipoint protocol is used (at least one of sel0, sel1, sel2 is different from zero). the command is the second character(s) of the string, in the multipoint protocol, but it becomes the transmission opening character when the point-to- point protocol is used (sel0, sel1 and sel2 = 0). the argument , if required, is specified immediately after the command and its length depends on the command type. the checksum character verifies the correctness of the received string; its value is determined by the sum of the binary values of the preceding charac- ters. the result is cut at the seventh least significant bit and ored with exadecimal 10 (c200s/c200 from v2.2) to make the result compatible with the transmission system. the last character, the string ending character, is always a carriage return that will be identified in the following by the symbol ( ). by connecting the pin chs (pin 7) to ground, the checksum character is not anymore requested, and the task of guaranteeing the correctness of the message is left to the parity bit. it should be noted that by using this dialogue mode, the data integrity confidence level is reduced. because motion sys- tems normally operate in manufacturing premises subjected to heavy electro-magnetic noise, and because any communication problem may have catastrophic effects on the system actions, it is a good practice to use the checksum character when- ever possible. the checksum character is normally not used (pin chs connected to ground) when the gs-c is connected to a video-terminal, i.e. during the initial programming and debugging phase. in the following, three examples of command strings sent to a gs-c module are given. example 1 - multipoint protocol. the host computer wants to set the user output 3 of the module #2. the command will have the following format: 10/31 the checksum character 6 results from the binary sum of the character 2 (ascii value = 32) + char- acter a (ascii value = 41) + character 3 (ascii value = 33) truncated at the seventh bit. example 2 - point-to-point protocol. the same instruction is given by the host to a point to point connected module. the command will have the following format: a3t the checksum character has an ascii value t that derives from the sum of the ascii code a+3 = 41+33 = 74 in binary weighted code or t in ascii code. example 3 - point-to-point protocol without checksum. for the same instruction, the command format will be: a3 the string consists of command and argument only. the gs-c feeds back information to the host every time it receives a command, therefore it has not to identify itself to the host when answering in a multipoint connection. the format of the string answered back by the gs-c is the following: answ.code argument checksum car.return the first character, which always identifies the an- swer type, may assume one of the following values: y the command string has been correctly received. b the controller is busy and cannot process commands. r the controller is ready to process commands. e an error has been detected. the type of error is specified by the number following the oeo. v a controller status (a position or an user input/output status) is sent back and its value is specified by the characters following the ovo. the length of the argument, present only for oeo and ovo answers, can range between 1 and 7 charac- ters, and it is a function of the received command. the number following the oeo code, i.e. the error argument, specifies the detected error type accord- ing to the following table: 2a36 address module #2 command activate argument user out 3 carriage return checksum GS-C200 / GS-C200s
error code type of error 1 parity error when receiving one or more characters, checksum error, or too long a command string. 2 command argument out of limit or not requested. 3 storage capacity overflow. 4 not allowed or not executable command. 5 overflow error during program execution (GS-C200 only). 6 eeprom programming error. the number following the ovo code depends on the type of the received command. when the gs-c answers to a ov1o request (feed- back the actual absolute position against the home position), the answer will be: vxxxxxxx where the xxxxxxx represent the absolute position. when the gs-c answers to a ov2o request (feed- back the user input/output status), the answer will be: vxy where the x and y meaning is: x = 1 user input 1 = 1 x = 2 user input 2 = 1 x = 4 user input 3 = 1 y = 1 user output1 = 1 y = 2 user output 2 = 1 x = 4 user output 3 = 1 the logic values of the inputs and outputs are added together. for example the answer: v36 indicates the following user i/o status: ui1 = 1 uo1 = 0 ui2 = 1 uo2 = 1 ui3 = 0 uo1 = 1 36 the presence of checksum character, whose value is calculated by using the method described in the previous example, is conditioned by the chs pin status. when chs is grounded (either by a logic signal or by a strap to ground) the checksum is deleted. the string terminator is, as in the previous case, a carriage return. 11/31 the sequencer-driver interface the interface to the sequencer-driver and, through it, to the mechanical environment, consists of eight logic signals (5 outputs and 3 inputs) which enable the gs-c intelligent controller to interface the gs- d200 or the gs-d200s modules as well as any sequencer drivers currently available. the eight signals can be divided into two groups, named respectively: primary signals utility signals the primary signals are those necessary for the correct system operation: reset output to reset the sequencer- driver. clock step clock output. dir direction output. enable step enable input. the function of each signal is described in detail in section pin description on page 4/31; it will be shown later that the step enable input in conjunc- tion with the position sensor of the motor, allows the implementation of closed loop systems (see para- graph closed loop operation on pag. 27). the utility signals allow the optimization of the driving system and the minimization of the hardware. they are: mov movement in execution output. ramp ramp in execution output. eot mechanical end of travel input. home electrical home position input. by using these signals it is possible to correctly define the system starting point or reference posi- tion, or to change the current in the motor windings during the acceleration and deceleration phases in order to optimize the motor performance. a typical example of the utility signals implementa- tion is given here. let's suppose that the required speed profile is as shown in fig. 5. figure 5. speed-time profile. GS-C200 / GS-C200s
12/31 to optimize the motor torque during the accelera- tion and deceleration (t 1 and t 3 ) it is convenient to use a phase current profile as shown in fig. 6. during the slew phase (t 2 ) when the motor rotates at constant speed, the current is reduced to the minimum value necessary to compensate the sys- tem losses (friction) and the load inertia. during the stall phase (t 0 and t 4 ) the current is further re- duced to the bare value necessary to maintain the load in the right mechanical position. by using this current profile the power dissipation of the se- quencer-driver and motor is optimized. this profile can easily be implemented by using the utility signals: mov movement in execution. ramp ramp in execution. figure 6. phase current-time profile. figure 7. user output applicative example the status of these two outputs can be used to set the appropriate phase current value for the power driver, by a simple but effective interface circuit that is described in detail in fig. 11 of paragraph phase current programming on page 24. the user interface the user interface consists of three inputs and three outputs which are ttl compatible. they can be read and/or activated during the execution of a program under the complete user control; therefore they condition a program execution. these signals allow the implementation of complex movements, minimizing the program length and the use of external hardware. the start of a movement or of a sequence can be conditioned by a logic level applied to one or more inputs, thus performing the omechanical treeo function. the user outputs logic state is set by program instructions and this information can be used by other controllers to synchronize multiple move- ments or to control external drivers. by using only these signals, it is possible to build up simple systems which implement cyclic move- ments and create a true stand-alone system. the example reported in figure 7 shows one of the possible utilization of user output. the example refers to a complete motion control system imple- mented by using the GS-C200 controller and the gs-d200 sequencer-driver. the user output uo1 is used to enable the gs-d200 (uo1 high) or to inhibit it (uo1 low). the user output uo2 is used to select the motor current decay inherent to the chop mode control of gs-d200. when uo2 is high a slow decay is im- posed to the phase current during recirculation; when uo2 is low a fast decay is selected. the user output uo3 allows the selection between the half and full-step mode of operation of the gs-d200. half-step occurs when uo3 is high. the GS-C200s is capable of executing a jump command either direct or conditioned by the logic status of the user inputs. this capability is very useful because it allows complex programs to be written by using a limited number of instructions. this feature makes also possible to have a segmented program contained in the internal memory; the selec- tion and the subsequent execution of the needed program segment is started by a specific logic status applied to the user inputs. the s.i.m.p.l.e. command interpreter and executor and the programming language the gs-c modules contain an interpreter program named s.i.m.p.l.e., acronym for s gs-thomson i nteractive s tepper m otor p rogram l anguage and e xecutor, that recognizes simple mnemonic com- mands, verifies the correctness of the received com- mands and executes the instruction sequences of each command or a complete command sequence by trans- lation into complex executable instructions. the inter- preter recognizes three different types of commands: direct execution command delayed execution command utility commands GS-C200 / GS-C200s
direct execution commands are immediately actu- ated. they include: start and stop the program execution, set the programming mode, check posi- tion, check i/o, etc... delayed execution commands are run when re- quested by the sequence currently stored in memo- ry. by using a combination of these commands, it is possible to perform very complex movements including also the conditioning by external stimulus, the iteration of a specific sequence for a defined number of times. utility commands allow the gs-c modules to per- form several additional functions such as the detec- tion of the position, phase current optimization etc... these commands, when properly used, speed up the system debugging phase and they increase the system efficiency. note: to easily learn how to program the gs-c and to minimize development time, a p.c. based self explaining and interactive pro- gram named f.a.s.t. ( f irst a dvanced s tepper motor t raining pro- gram), able to communicate with the module by using the point-to-point protocol, has been developed and it is available to the end user. (see GS-C200prog data sheet). command strings can be easily implemented also by using a high level language such as basic, or they can be generated by a dedicated microcontrol- ler programmed in machine language. the dia- logue speed is limited by the time required to construct the command string and to analyze the gs-c data, and it results noticeabily reduced when a omachine languageo program is used. the program, after testing, can be stored in the eeprom included in the gs-c module and then loaded and automatically executed at power-up, resulting in a low cost stand-alone system. it is also possible to save the program as a dos file on a floppy disk for future retrieval, or to ease the field update of the program itself. every command is identified by one or two charac- ters and by a variable length argument (from 0 to 7 characters). if the multipoint communication proto- col is used, the address is specified by the number that preceeds the command. all the commands sent by the host, as well as the data generated by the gs-c, are terminated by a carriage return (ascii value = 0d). in the following pages all the commands which may be executed by the GS-C200 and the GS-C200s are detailed, as well as their format. a practical example of the command usage is also given. the presence of an asterisk at the end of the command denotes that the command is executable only by the gc-c200, while two asterisk denote a com- mand executed only by the GS-C200s. each command is shown in the same format used during the programming phase, i.e. the command identifier plus the argument: g sxxxxxxx the argument can be single, double or missing according to the various command types. the various argument are identified by different letters according to the particular type i.e.: s = sign + or x = figure 1 to 3 y = figure 0 to 7 v = value 1 to 999 depending on command p = position 1to 999999 incremental or the absolute position apart the different number of executable com- mands and functions, the GS-C200s and the gs- c200 look very similar each other. the only foundamental difference is the way they manage the position counter. the position counter is the reference ruler for the microprocessor to move correctly from the actual position to the targeted one, executing the proper number of steps in the right direction. the GS-C200 position counter allows a maximum of ten million steps to be executed, and the home position corresponds to the 0 count position. when a movement is larger than the position ruler limits an error 5 is reported to the host. the GS-C200s position counter allows a maximum total count of 2 24 step ranging from 8388608 to +8388607 steps. when the maximum count is ex- ceeded the counter wraps-around. for example if the position counter is +8388606 and a +5 steps movement is executed, the final position will be: +8388606 initial position +8388607 after 1 step execution 8388608 after 2 steps execution 8388607 after 3 steps execution 8388606 after 4 steps execution 8388605 final position of course no error is reported. 13/31 GS-C200 / GS-C200s
14/31 command description ax the activate command sets a user output to the active logic level ooneo. the command is always followed by an argument whose value ranges between 1 and 3, and that specifies the user output to be activated. the command string: a2 causes the uo2 output to be set to the logic level ooneo. the activate command is of the delayed execution type and it occupies 2 memory locations. cx the clear command clears a user output, i.e it forces the logic level to ozeroo. the command is always followed by an argument whose value ranges between 1 and 3, and that specifies the user output to be cleared. the command string: c3 cleares the uo3 output by forcing it to the logic level ozeroo. the three user outputs are automatically cleared at power-up. the clear command is of the delayed execution type and it occupies 2 memory locations. dvvv the delay command allows the execution of a delay. the instruction is always followed by an argument whose value ranges between 1 and 255, and that specifies the duration in tenth of sec. of the delay to be executed. the command string: d15 causes a 1.5 seconds delay to be executed before the next instruction is considered. the delay command is of the delayed execution type and it occupies 2 memory locations. e the execute command starts the execution of the program stored in memory. it is also used to terminate the GS-C200 programming session and no argument is required. the execute command is of the immediate execution type. f the feedback command allows the host computer to know whether the controller is ready to receive a command or not. to comply with this request, the gs-c replies by: b (busy) in case it is executing a program, or: r (ready) if it is ready to receive a command, or: e5 (error) this latter answer, used only by the GS-C200, indicates that during the program execution the position counter has reached the overflow condition (i.e. > 9999999). the feedback command is of the immediate execution type. fsxxxxxxx** the force command, executable only by the GS-C200s, allows the user to preset the position counter to the desired value. this command is always followed by the sign and the value of the position that spans from 8388608 to + 8388607. the force command is of the delayed/immediate execution type and it occupies 4 memory locations. gxxxxxxx * the goto command forces the motor to reach the specified target position. this command, executed exclusively by the GS-C200, is always followed by an argument whose value ranges between 0 and 9999999, and it defines the position to be reached. the 0 position coincides with the home position or with the position where an initialize command has been sent. the goto command is of the delayed execution type and it occupies 4 memory locations. GS-C200 / GS-C200s
15/31 command description gs * the ovelocity modeo goto command allows to move the motor continuously, i.e. the motor is accelerated to the programmed speed and then it slews indefinitely in the selected direction until a ostopo command is received. the command is always followed by the direction information. the command string : g+ move the motor in the clockwise direction while: g move the motor in the counterclockwise direction. to stop the motor either the z or the k command can be used. the ovelocity modeo goto command is of the delayed execution type and it occupies 4 memory locations. gsx * a further possibility offered by the goto command, that greatly improves the GS-C200 flexibility, is the ocontrolled velocity modeo operation. this command is followed by the direction information and by the user input to be tested to stop the operation. this occurs when a ozeroo level is applied to the specified user input. for example the command string: g+2 causes the motor to ramp to the programmed slew speed and to move at this speed until the ui2 input is brought to ozeroo. the ocontrolled velocity modeo goto command is of the delayed execution type and it occupies 4 memory locations. gsxxxxxxx** the goto command forces the motor to reach the specified target position. this command, executed exclusively by the GS-C200s, is always followed by an argument whose value ranges from 8388608 and + 8388607, and it defines the position to be reached. the 0 position coincides with the home position or with the position where an initialize command has been sent. the goto command is of the delayed execution type and it occupies 4 memory locations. gs ** the ovelocity modeo goto command allows to move the motor continuously, i. e. the motor is accelerated to the programmed speed and then it slews indefinitely in the selected direction until a ostopo command is received. g+1 move the motor in the clockwise direction while: g move the motor in the counterclockwise direction. to stop the motor either the z or the k command can be used. the ovelocity modeo goto command is of the delayed execution type and it occupies 4 memory locations. gsx ** an additional possibility offered by the goto command, further improving the GS-C200s flexibility, is the ocontrolled velocity modeo operation. this command is followed by the direction information and by the user input to be tested to stop the operation. this occurs when a ozeroo level is applied to the specified user input. for example the command string: gt1 causes the motor to ramp to the programmed slew speed and to move at this speed until the ui1 input is brought to ozeroo. the ocontrolled velocity modeo goto command is of the delayed execution type and it occupies 4 memory locations. GS-C200 / GS-C200s
16/31 command description hs the home command allows the gs-c to find the mechanical reference position. the command is followed by the argument that specifies the searching direction of the end of travel switch. the argument can be omitted and in such a case the gs-c will execute the command: h+ as soon as the gs-c receives the home command, it moves the motor in the selected direction at the start-stop speed (defined as the first instruction at the beginning of the program) until the end of travel input is brought to ozeroo. when this condition is reached the direction is reversed and the movement continues until the home input reaches the ozeroo logical level. the position counter is then cleared as well as the program contained in the ram memory, and the controller is ready to process a new command. in the GS-C200s, the position is also cleared, but the previous program, present in the ram is saved. when the home and the end of travel inputs are tied toghether the system reference point will correspond to the end of travel position. to allow the system homing also in a stand alone application, an home command is automatically executed at start-up after the program recall. the home direction is defined by the logic state of the rxd input (pin 11) that when unconnected is equivalent to a h+ command, while when connected to the +5v pin it forces a h command. in a stand-alone environment, when the home command is not needed, it is mandatory to ground the end od travel and the home inputs (pins 32 and 30). the home command is of the immediate execution type. ix the initialize command forces the gs-c module to be selectively inizialized. the command is followed by an argument whose value ranges between 1 and 3, and that specifies where the action is addressed according to the following table: 1 = position counter is cleared 2 = user outputs are cleared 3 = position counter and user outputs are cleared. the initialize command is used to create a logic home position for the GS-C200 if the 9999999 steps are not enough for the specific application. this function is better performed by the force command in the GS-C200s, for which it is also possible to insert this command into the program. the initialize command is of the immediate execution type for the GS-C200, while it results of the delayed/immediate execution type for the GS-C200s and it occupies 2 memory locations. jv ** the jump command, executed only by the GS-C200s, allows the user to move inside the program and to repeat indefinitely a portion of the program itself. the argument specifies the memory location to be reached and it ranges from 0 (that is the program starting point) to 118. the jump command is of the delayed execution type and it occupies 2 memory locations. jcv,y ** the conditional jump command, executed only by the GS-C200s module, allows the user to move inside the program as a function of the logic state of the user inputs. the argument specifies both the memory location to be reached ( v ), that must range between 0 and 118, and the user input condition to be matched ( y ) in order to execute the conditional jump. the following example shows how powerful this command is: jc0,40 jc1,52 jc2,74 when the first command is encountered the module tests the status of the user input pins and if their value is 0 a jump to the memory location 40 is executed. if the condition is not met the jump is not executed and the following instruction is examined, and so on. the conditional jump command is of the delayed execution type and it occupies 2 memory locations. k the kill command aborts the program execution. the program can be restarted just by issuing the execute instruction which will start the sequence from the first program instruction and not from the interrupt point; it is therefore advisable to always send a home instruction after a kill instruction in order to allow the system to start from a known position. the kill command is of the immediate execution type. GS-C200 / GS-C200s
17/31 command description lo the loop start command marks the memory location where the portion of a repeatedly executed command sequence begins. this command is normally used together with the loop repetition number command. the loop start command is of the delayed execution type and it occupies 2 memory locations. lxxx the loop repetition number command allows an instruction, a sequence or a whole program to be repeated for the specified number of times. the command must be followed by an argument ranging from 1 to 255, that specifies how many times the portion of the program contained between the loop start command and the loop repetition number has to be executed. the sequence: l0 ? ? ? l10 forces the command sequence included between l0 and l10 to be repeated ten times. this command in normally used togheter with the loop start command. if the loop starting point is not specified, the interpreter repeats the sequence starting from the beginning of the program. the loop repetition number command is of the delayed execution type and it occupies 2 memory locations. m the memory save command allows the program currently stored in the ram memory to be permanently saved in the eeprom. the program can then be reloaded both automatically or under command. in the first case, it is executed automatically at power on, while in the latter the x command must be issued. the memory save command is of the immediate execution type. p* the program enter command sets the GS-C200 in the programming mode and it allows a new program to be entered in the memory. the instruction doesn't require any argument and it causes the cancellation of the program contained in the ram memory the programming session is terminated by the execute command. the program enter command is of the immediate execution type. po ** the program enter command sets the GS-C200s in the programming mode and it allows a new program to be entered in the memory. the instruction doesn't require any argument and it causes the cancellation of the program contained in the ram memory. the programming session is terminated either by the program exit or the execute command. the program enter command is of the immediate execution type. px ** the program exit command sets the GS-C200s in the execution mode and it allows the unit to wait for a command. the instruction doesn't require any argument. the program exit command is of the immediate execution type. q the query command instructs the gs-c to send to the host computer the program currently stored in the ram memory. every program instruction is separated by a carriage return (ascii 13), and the program end is evidenced by the transmission of a message oendo that is the sequence terminator and it must be recognized by the host. the instruction does not require any argument. the query command is of the immediate execution type. GS-C200 / GS-C200s
18/31 command description rvvv the ramp command allows the user to define the length of the acceleration and deceleration ramps that are always identical. the command is followed by an argument whose value ranges from 1 to 999 and it determines the number of steps necessary to pass from the start-stop speed to slew speed. the instruction: r50 specifies an acceleration or deceleration ramp 50 steps long. when the number of steps to be executed is lower than the length of the two ramps (acceleration and deceleration), the ramping is reversed before the maximum speed is reached to guarantee the correctness of the final position. more than one ramp length can be used during the program execution just by introducing an r command in the proper sequence place. r25 3000 ? ? r85 800 ? this program executes a 25 steps ramp length for the movements until the r85 command is encountered; from that moment all the movements are executed with a 85 steps ramp length. this feature allows the user to optimize the motion system to adapt for different friction and load conditions. the ramp command is of the delayed execution type and it occupies 4 memory locations. svvv the start-stop command allows the user to choose the step rate at which the motion is started. the command is always followed by an argument whose value ranges between 1 and 1000 and it corresponds to a start-stop step rate of 10 to 10,000 steps/second (a by 10 multiplier is used). the range normally used is from 1 to 50 corresponding to a 10 to 500 steps/second rate. the command: s30 indicates a 300 step/sec or 300hz start-stop frequency. a start-stop command must initiate any program to be executed in stand alone environment. more than one start-stop rate can be used during the program execution just by introducing a new start-stop command when needed, as shown in the following program sequence: s20 t200 ? ? s35 ? t300 ? the start-stop command is of the delayed execution type and it occupies 4 memory locations. tvvv the top-speed command allows the user to choose the motion system slew speed. the command is always followed by an argument whose value ranges between 1 and 1000 that correspond to a top-speed step rate of 10 to 10000 steps/second (a by 10 multiplier is used). the range normally used is from 30 to 500, corresponding to a 300 to 5000 steps/second rate. the command: t300 indicates a 3000 steps/sec or 3khz rate (equivalent to 900 turns/minute for a motor with 200 steps/turn). more than one top-speed rate can be used during the program execution just by introducing a new top-speed command in the proper sequence place as per the example reported in the start-stop speed command description. the top-speed command is of the delayed execution type and it occupies 4 memory locations. GS-C200 / GS-C200s
19/31 command description ux the until command allows the program currently stored in ram memory to be continuously exe- cuted until a specific user input is brought to ozeroo. the command is always followed by an argument whose value ranges between 1 and 3, and it specifies the user input to be tested. the command: u2 states that the program, once started, will be continuously executed as long as the user input ui2 is at the logic level ooneo. just after user input ui2 is set to ozeroo, the program processes the next command after u2. the until command is of the delayed execution type and it occupies 2 memory locations. vx the verify command allows the host to know the current absolute position of the motor versus the home position or the status of the user inputs and outputs. the instruction is always followed by an argument whose value, 1 or 2, specifies the type of requested information. the request for the current absolute position is obtained by issuing the instruction: v1 the gc-c200 answer can be 1234567 while the GS-C200s answer can be: +1234 the request of the user outputs status is obtained by using the instruction: v2 the gs-c answer can be: 25 that denotes the following input/output status: the verify command is of the immediate execution type. x the exchange command allows the user to transfer the program currently stored in the eeprom into the ram. this command is used either during the program debugging phase when the f.a.s.t. program is utilized, or when the fast execution of a frequently used program is needed. in this latter case the host recalls the program from the eeprom by simply issuing the following command string: e x the exchange command is of the immediate execution type. wx the wait-for command allows the program start or a portion of program execution to be conditioned by the rising edge of an external signal applied to the a user input. the command is always followed by an argument whose value ranges between 1 and 3, and it specifies the user input to be tested in order to conditions the next command execution. the instruction: w2 states that the program execution is conditioned by the presence of a ooneo logic level at the user input ui2. the wait-for command is of the delayed execution type and it occupies 2 memory locations. ui1 = 0 uo1 = 1 ui2 = 1 uo2 = 0 ui3 = 0 uo1 = 1 25 GS-C200 / GS-C200s
command description z the zero the speed command allows a smooth stop of the motion system. when the gs-c receives this command it reduces the stepping rate to ozeroo through a deceleration ramp and it stops the program execution. if there is no motion when activated, the program execution is immediately stopped. by using this command it is possible to stop the motor still maintaining trace of the system position. the program can be subsequentely restarted through an e command. xxxxxx the incremental positioning command allows the user to perform a movement referenced to the actual position. the command can be issued either with a + or sign that defines the direction of the motion, and it is followed by an argument ranging from 1 and 999999 that defines the number of steps to be executed. the incremental position command can be mixed to the goto absolute positioning command in a program, and it is normally used in a subroutine. the incremental position command is of the delayed execution type and it occupies 4 memory locations. 20/31 during the program execution, the gs-c accepts only the f , z and k commands. any other command sent to the gs-c during the program execution has no effect, and the module will respond to the host computer by sending the answer b (busy). the GS-C200s programming requires a specific attention because, when a program includes a jump command, it is mandatory to address the proper memory position to correctly execute the sequence. for this purpose it is mandatory to define the jump memory location by adding, for each program in- struction, the proper bytes length that is specified in the command description. the program starts from memory address 0. the program storage area the gs-c contains two storage areas reserved to the user. the first is the microprocessor random access memory from where the motion program is executed, the second is an eeprom where the programs are saved. the eeprom contains a program or a command sequence programmed by the user that can be transferred into the ram memory by using the x command. the ram contains either a program or a command sequence sent by the host computer or transferred from the eeprom. in any case the program that is executed when an e or goto command is issued. is the one contained in the ram. if the program is sent by the host, it is checked to verify if the logical and physical correctness has been respected and if the storage capability is not exceeded. in case an error is detected, it is notified to the host through an appropriated error message. the number of instructions that can be stored de- pends on the type of instruction, and typically it ranges between 30 and 60, for a total of 119 mem- ory locations. the power supply the gs-c module contains a high efficiency switch mode power supply. it generates the various regu- lated voltages required for the proper operation of the internal logic and the communication port, start- ing from an unregulated input voltage that can range from 12 to 40 volt. the module also features a 5v output capable of delivering up to 100ma, which can be used to supply external devices or the logic port of a gs-d module. this output is pro- tected against short circuit to ground. two outputs at 12v are available with a current capacity of 10ma. program examples after the description of the communication protocol, of the various commands and of the various mes- sages, some simple programs examples are given in the following. example 1 the required action is to run a motor at 1000 steps/sec. rate, with a start-stop rate of 100 steps/sec., and a ramp length of 50 steps. the target position to be reached is the step 500000. the operative sequence is the following: 1) connect the GS-C200 to an host computer equipped with the advanced basic program. 2) power-on the GS-C200. 3) enter the dos operating system and then run the f.a.s.t. program (see the GS-C200prog datasheet). 4) start the programming session by typing the following command sequence: f read the controller status. a ready is answered by the gs-c. i3 clear the position counter and the user outputs. GS-C200 / GS-C200s
21/31 p enter the programming mode s10 set the start-stop rate to 100 steps/sec. t100 set the slew speed rate to 1000 steps/sec. r50 set the ramp length to 50 steps. g500000 goto the target position e end of the programming session. the gs-c starts the program exe- cution. the g500000 command can be substituted by the +500000 command. the program can also be stored in the gs-c eeprom by typing an m command before the e command . example 2 the program chosen for this example drills 5 equi- distant holes on a metal bar. a gs-c and gs-d motion system is used to control the vertical posi- tion of the drill, while a second gs-c and gs-d motion system is used for the proper bar loading and positioning. to better clarify the operations to be executed and to show the program simplicity, the two command sequences and the relative process flowcharts are also reported. the programming session is entered following the points 1 to 4 of the previous example. the first command sequence, used to correctly position the metal bar, is the following: s10 set the start-stop speed to 100 steps/sec t100 set the slew speed to 1000 steps/sec r40 set the ramp length to 40 steps w1 wait for the external start +250 reach the first drilling position l0 loop starting point a2 activate the unit 2 forcing uo2 = 1 d1 wait 0.1 sec c2 then reset uo2 w2 wait until drilling completion +120 reach the drilling position 120 steps cw l4 repeat the loop 4 times a2 activate the unit 2 forcing uo2 = 1 c2 then reset uo2 w2 wait until drilling completion +250 reach the cutting position 250 steps cw a1 activate the cutting blade forcing uo1 = 1 d5 wait 0.5 sec c1 clear cutting command resetting uo1 the second command sequence, used to drill the metal bar, is the following: s15 set the start-stop rate to 150 steps/sec t200 set the slew rate to 200 steps/sec r25 set the ramp length to 25 steps w1 wait for start w2 wait for a drilling command from unit 1 a2 activate the drill motor forcing uo2 = 1 +150 pull down the drill d1 wait 0.1 sec g0 lift the drill up c2 stop the drill motor a1 notify drilling completion to unit 1 forcing uo1 = 1 d1 wait 0.1 sec c1 then clear uo1 the combination of these two programs operates only on one bar, then the two gs-c become avail- able again to the host both for the repetition of the program or for the entering of a new command sequence. if the operation has to be repeated till the exhaus- tion of bars, it will be sufficient to add, at the beginning of the first sequence, the command; u3 execute until ui3 = 1 which allows the drilling cycle to continue until the controller which takes care of the bar positioning, is notified to stop the operations. this notification is accomplished by clearing the user input ui3 of gs-c devoted to the positioning. to demonstrate the efficiency of the gs-c program- ming language it is worth to mention that the pro- gram for the bar positioning uses 50 memory locations, while the program for the drill control needs only 36 memory locations. the two programs can be contained in the gs-c memory thus making the system simpler and easier to maintain. GS-C200 / GS-C200s
22/31 figure 8. automatic drilling and positioning system block diagram. GS-C200 / GS-C200s
23/31 figure 9. programs flow-charts. GS-C200 / GS-C200s
24/31 figure 10. alternative sequencer-driver driving. the sequencer-driver interface the gs-c is a general purpose stepper motor controller capable to drive any type of motor, i.e. two, three and five phases motors, by just interfac- ing it to the right sequencer-driver. sometime the available sequencer-driver requires two separate clock lines, one for each direction, and this requirement is easily fulfilled by the circuit of figure 10. phase current programming as already explained, the possibility to modify the phase current of a stepper motor according to different operating conditions, gives substantial im- provements in term of efficiency and system reliabil- ity because it minimizes the resonance effects and the dissipated power. the phase current programming can be imple- mented in various modes, either via a software command by changing the status of the user output lines, or by hardware. of course, the se- quencer-driver must have the current programming capability. an example of a hardware solution, im- plemented around a gs-c and gs-d200/200s module, is shown in fig.11. the application utilizes the two outputs: mov movement in execution output (pin 22) ramp ramp in execution (pin 23) of the gs-c module and the i oset current programming input (pin 9) of the gs-d module. the phase current has the shape shown in fig.6, i.e. it is minimized when the motor is stopped, it has its maximum value during the acceleration/decelera- tion ramps, and an intermediate value during the slew phase. figure 11. phase current programming of the gs-d200/200s GS-C200 and GS-C200s application GS-C200 / GS-C200s
25/31 let's assume the following values are needed: i rest = 0.25a i ramp = 1.5a i slew = 0.5a the logic condition of the ramp and mov outputs in the various states is: during the ramping phase both pins 22 and 23 are high: tr1 is on and tr2 is off. during the slew phase pin 23 is low and pin 22 is high: tr1 and tr2 are off. in stall condition tr1 is off and tr2 is on. the value of r1, r2, r3 is determined as follows (for further details please see the gs-d200/200s data sheet). the value of r3, that fixes the i slew = = 0.5a (tr1 and tr2 off), is easily calculated by referring to the gs-d data sheet: r3 = i slew 1 - 0.933 ? i slew r3 = 937 w the value of the r2 resistor, when paralleled to r3, fixes the value of i rest = 0.25a (tr1 off, tr2 on). r2 // r3 = i rest 1 - 0.933 ? i rest r2 // r3 = 326 w r2 = 500 w the value of r1, that depends on the value of r3 and the resistors contained in the gs-d200/200s module, fixes i ramp = 1.5a (tr1 on, tr2 off). the values of the internal resistors are: 1.2k w to ground and 10k w to v ss for the gs-d200 750 w to ground and 10k w to v ss for the gs-d200s assuming the gs-d200s is used, after some straightforward calculations, it results: r1 = 4245 w of course all these values do not take into account the transistors saturation losses and in some cases, when a very precise current is needed, a trimming is required. galvanic isolation the industrial environment, where normally a step- per motor and its driving system operate, is very noisy and for this reason it is often advisable to have a galvanic isolation between the host computer and the motion system. because the connection bet- ween the host and the gs-c module requires only three wires (txd, rxd and ground), the galvanic isolation can be implemented as per fig. 12 that uses only two optocouplers and two resistors, one protection diode and a +12 or +15v source. a +12 or +15v source is normally available on the pin 6 and 8 of any rs232 connector. the source impedance is quite high (in the range of 220 to 600 w ) and for this reason the value of r2 must be greater than 1000 w to avoid the source overload. figure 12. GS-C200 to host galvanic isolation. GS-C200 / GS-C200s
26/31 complex movements synchronization in many applications the synchronization of several movements is quite often required and the gs-c allows this function to be easily implemented either by using the step enable input or the user in- put/output pins. in fig.13a and fig.13b the block diagrams relative to the two solutions are reported. the solution a is the simplest but it has some limitations, i.e. it can be used only when the whole system has to move synchronously. the solution b is more complex but also more flexible and it allows the program to control where and when the syn- chronization must be implemented. the start-stop speed (s command) selection a typical start-stop curve (as shown on fig. 14), shows that for a given driving voltage and phase current, the highest drive frequency allowed at the start (pull-in rate) is much lower than the one allowed for the stop (pull-out rate) and that both are influenced by the load value. of course the higher the current level the higher is the available torque, and the system can be started at a greater speed. asignificant increase of the start-stop speed is obtained when the supply voltage is increased but in both cases the problem related to the me- chanical resonance must be considered. it is advis- able to maintain a significant safety margin against the system torque limit in order to avoid any prob- lem due to the friction variation. a commonly ac- cepted rule fixes the start-stop speed equal to the 50% of the maximum theoretical value reported on the motor data sheet; this takes into account fric- tion, load inertia variations as well as motor pa- rameter differences and power supply fluctuations. figure 13. complex movements synchronization figure 14. start-stop characteristic. slew speed (t command) selection the slew speed is roughly determined by the load and it can be evaluated by using the following relation: f ? l 6000 ? t = t ? n 10 where f = strength in pounds t = torque in ounce/inch l = length in inches n = speed in turn/min. t = time in seconds b a GS-C200 / GS-C200s
27/31 figure 15. torque/frequency characteristic. the slew speed is also limited by the motor electri- cal and physical characteristics, as shown on fig. 15 where the behaviour of the minimum available torque versus the driving frequency is reported. it can be noted that the torque decreases almost linearly starting from a certain frequency, and this frequency depends on the motor windings imped- ance and the rotor inertia. figure 16. the GS-C200 acceleration ramp. ramp lenght (r command) selection the acceleration and deceleration ramps are not likely to be calculated and they shall be optimized during the system debugging and testing phase. the testing may start with very conservative ramp gradients, i.e. very long ramps, that will be gradually shortened until the first positioning error is detected. the acceleration and deceleration ramps gener- ated by the gs-c have the trend shown in fig. 16. it is important to note that, when the number of steps to be executed does not allow to reach the slew speed, the gs-c moves to the target position performing a partial acceleration ramp linked to a shortened deceleration ramp. this represents the minimum time consuming way to reach the speci- fied position. closed loop operation the stepper motor is a device normally driven in an open loop mode and there is no direct control between the cause and the effect. in adverse con- ditions an issued step may not be performed me- chanically because the driving conditions do not match the required torque and speed. in addition, the resonance phenomenon, common to all the stepper motors, can also affect the correct position- ing. in some particular applications, when the load has a very large spread of values and the torque margin is limited, it is sometimes necessary to implement an external electronic circuitry to guarantee the correct system positioning to this purpose three different methods can be adopted: a) digital encoding of the absolute position. b) recognition that a step has been executed by the usage of a slotted disk, two optocouplers and some logic. c) the same as above by the usage of velocity coils and some logic. the first solution is very expensive and the digital- ized position value must be read by the computer through a parallel port by using a specifically written program. a further limitation arises from the fact that every shaft encoder provides just the informa- tion relative to the position but it does not take care if more than one turn has been performed by the motor shaft, and an external logic is also required to detect and save this condition. the second solution is less expensive but it requires a tedious trimming of the mechanical positioning of the optical sources and detectors to be effective. the major drawback of this solution is its sensitivity to dust, and the whole position sensing system must be contained in a dust free box. the last solution is probably the best under every point of view because it does not require any me- chanical positioning adjustement that has been previously made by the motor manufacturer; more- over it is dust insensitive beeing based on flux variation across an air gap and finally no mechani- cal hardware must be added to the system. GS-C200 / GS-C200s
28/31 in fig. 17 the block diagram of a closed loop system is reported. if the step execution is recognized by a movement detector that uses either a slotted disk or the motor velocity coils, two logic signals (x,y) like those re- ported in fig. 18 are available. figure 17. closed loop system. figure 18. signal output of the movement detector. figure 19. suggested logic to close the loop. it is possible, by using these two signals as inputs (x, y) of the very simple and inexpensive logic circuit reported in fig. 19, to detect the direction of rotation and the step execution. the output of the circuit is then used to condition the step enable input of the gs-c module allowing the step clock pulse to be issued only if the previous step has been executed. GS-C200 / GS-C200s
29/31 figure 20. typical single step response. electronic damping any stepper motor system when driven at very low stepping rates, has an oscillatory step response as shown in fig. 20. this oscillatory behaviour is due to fact that the motor reaches the stall position after each excita- tion change through an acceleration and a succes- sive deceleration. this causes the motor shaft to rotate with jumps instead of uniform motion. another consequence of this oscillatory single step response is that the long system settling time can cause mechanical stresses to the driven load. a second tedious effect is the enhancement of the rotor oscillation when the driving step rate ap- proaches the natural resonance frequency of the motor. if the step rate is lower than this frequency, the motor is behind the equilibrium position and the velocity is near to zero when the next excitation change occurs. when the step rate is increased to a value close to the natural resonance frequency, an increase of the oscillations also occurs, and as soon as the oscilla- tion amplitude exceeds the step amplitude, the corrispondence between the rotor position and the excitation sequence is lost and any subsequent rotor movement is erratic as shown in fig. 21. a simple method to reduce the oscillations problem is to use the half step driving, but this also limits the maximum speed of the system. when this limitation is not acceptable, other two basic techniques may be adopted to damp the system oscillations: 1. a mechanical damper 2. an electronic damping circuit. figure 21. slow speed step response. GS-C200 / GS-C200s
30/31 the mechanical damping is obtained by the intro- duction of a viscous friction between the motor shaft and the load. the friction system must be elastic and it will recover the original relative angular shaft alignement to assure the correct final positioning. the response time of the damping system must be quite fast, and it must be active just for rapid speed changes otherwise a severe limitation in the maxi- mum speed will occur. the electronic damping is obtained by the proper driving of the motor phases that are switched on and off in such a way to generated a negative torque to decelerate and stop the rotor smoothly. let's assume the motor is moving from position 1 to the detent position 2, i.e. the phase a is switched off and the phase b is switched on. the rotor starts moving at t 0 instant (see fig. 22), and after a time t 1 , the phase driving is reversed (phase a on and phase b off) generating a braking torque that will allow the rotor to approach the final detent position at a very limited speed. before the zero speed is reached, (t 2 ) it is neces- sary to switch back the phase driving to its original condition in order to stop the system at its target position. leaving the phase driving unchanged will cause the motor to stop a step earlier of the correct position because the motor, after the zero speed is reached, will accelerate in the reverse direction returning to the starting position. the deceleration time as well the damping level is easily adjusted by changing the timing i.e. t 1 and t 2 , but it can be quite complicate to compensate a system where large load variation occurs. figure 22. single step response with damping. in fact, an heavy load variation causes a large variation of the single step response time of the system, and it could be that a system compensated in a no load condition will stop one step behind when fully loaded, while another compensated at full load will probably exibits erratic positioning at no load. if the loadcondition isknown it is possible to introduce a compensation circuit that can be conveniently driven by one or more user outputs. fig. 22 shows the motor response to a single step pulse with elec- tronic damping and the relative phase driving. this phase switching reversal method is also known as the bang-bang damping method, and it can be easily implemented by using the gs-c module. the ramp and mov signals allow the user to detect when the last pulses are issued, and to generate, by a simple logic circuit, the delayed phase reversal commands necessary to implement the sequence of fig. 23. the circuit uses a last pulse detector (g1), and on the falling edge of the a signal (synchronous to the last step command), a timing generator is triggered. the various delays can be trimmed to the values requested by the operating conditions, and the pulse sequence reported in figure 23 (a, b and c signals) in generated. the aand b signals are used to reverse the motion direction (g 2 ) while the c signal steps twice the motor (backward and forward). steps GS-C200 / GS-C200s
figure 23. practical implementation of the phase reversal damping with the gs-c module. 31/31 information furnished is believed to be accurate and reliable. however, sgs-thomson microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of sgs-thomson microelectronics. specification mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. sgs-thomson microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of sgs-thomson microelectronics. ? 1994 sgs-thomson microelectronics all rights reserved sgs-thomson microelectronics group of companies australia - brazil - china - france - germany - hong kong - italy - japan - korea - malaysia - malta - morocco - the netherlands - singapore - spain - sweden - switzerland - taiwan - thailand - united kingdom - u.s.a. GS-C200 / GS-C200s


▲Up To Search▲   

 
Price & Availability of GS-C200

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X